<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page import="java.awt.Point"%>
<%@ page isELIgnored="false"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
	content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link rel="stylesheet" type="text/css"
	href="static/h-ui/css/H-ui.min.css" />
<link rel="stylesheet" type="text/css"
	href="static/h-ui.admin/css/H-ui.admin.css" />
<link rel="stylesheet" type="text/css"
	href="lib/Hui-iconfont/1.0.8/iconfont.css" />
<link rel="stylesheet" type="text/css"
	href="static/h-ui.admin/skin/default/skin.css" id="skin" />
<link rel="stylesheet" type="text/css"
	href="static/h-ui.admin/css/style.css" />
<title>车辆热榜</title>
</head>
<body>
	<div class="page-container">
		<p class="f-20 text-success">
			欢迎使用<span class="f-14"> </span> 云和汽车租赁系统 v1.0
		</p>

		<div class="f-14 c-error">云和汽车租赁系统，只为给您最好的租车体验！</div>

		<div id="container" style="min-width: 700px; height: 400px"></div>
	</div>

	<!--_footer 作为公共模版分离出去-->
	<script type="text/javascript" src="lib/jquery/1.9.1/jquery.min.js"></script>
	<script type="text/javascript" src="lib/layer/2.4/layer.js"></script>
	<script type="text/javascript" src="static/h-ui/js/H-ui.min.js"></script>
	<script type="text/javascript" src="static/h-ui.admin/js/H-ui.admin.js"></script>
	<!--/_footer 作为公共模版分离出去-->

	<!--请在下方写此页面业务相关的脚本-->
	<script type="text/javascript"
		src="lib/hcharts/Highcharts/5.0.6/js/highcharts.js"></script>
	<script type="text/javascript"
		src="lib/hcharts/Highcharts/5.0.6/js/modules/exporting.js"></script>
	<script type="text/javascript">
		$(function() {
			$('#container')
					.highcharts(
							{
								chart : {
									type : 'column'
								},
								title : {
									text : '车辆外租次数排行榜'
								},
								subtitle : {
									text : 'Off-car rental rankings'
								},
								xAxis : {
									categories : [ '第一季度', '第二季度', '第三季度', '第四季度' ]
								},
								yAxis : {
									min : 0,
									title : {
										text : '外租次数 (辆次)'
									}
								},
								tooltip : {
									headerFormat : '<span style="font-size:10px">{point.key}</span><table>',
									pointFormat : '<tr><td style="color:{series.color};padding:0">{series.name}: </td>'
											+ '<td style="padding:0"><b>{point.y:.1f} 辆</b></td></tr>',
									footerFormat : '</table>',
									shared : true,
									useHTML : true
								},
								plotOptions : {
									column : {
										pointPadding : 0.2,
										borderWidth : 0
									}
								},
								series : [
										{
											name : 'A级车',
											data : [${li.get(0)} ,${li.get(1)}, ${li.get(2)}, ${li.get(3)}]

										},
										{
											name : 'B级车',
											data : [ ${li.get(6)}, ${li.get(7)}, ${li.get(8)}, ${li.get(9)} ]

										},
										{
											name : 'C级车',
											data : [${li.get(12)}, ${li.get(13)}, ${li.get(14)}, ${li.get(15)}]

										},
										{
											name : 'D级车',
											data : [ ${li.get(18)}, ${li.get(19)}, ${li.get(20)}, ${li.get(21)} ]

										} ]
							});
		});
	</script>


	<div class="page-container">

		<table class="table table-border table-bordered table-bg">
			<thead>
				<tr>
					<th colspan="6" scope="col">车辆信息统计</th>
				</tr>
				<tr class="text-c">
					<th>统计</th>
					<th>A级车</th>
					<th>B级车</th>
					<th>C级车</th>
					<th>D级车</th>
					<th>合计</th>
				</tr>
			</thead>
			<tbody>
				<tr class="text-c">
					<td>车辆总借次</td>
					<td>${li.get(0)+li.get(1)+li.get(2)+li.get(3)}</td>
					<td>${li.get(6)+li.get(7)+li.get(8)+li.get(9)}</td>
					<td>${li.get(12)+li.get(13)+li.get(14)+li.get(15)}</td>
					<td>${li.get(18)+li.get(19)+li.get(20)+li.get(21)}</td>
					<td>${li.get(0)+li.get(1)+li.get(2)+li.get(3)+li.get(6)+li.get(7)+li.get(8)+li.get(9)+li.get(12)+li.get(13)+li.get(14)+li.get(15)+li.get(18)+li.get(19)+li.get(20)+li.get(21)}</td>
				</tr>
				<tr class="text-c">
					<td>本公司车辆</td>
					<td>${li.get(4)}</td>
					<td>${li.get(10)}</td>
					<td>${li.get(16)}</td>
					<td>${li.get(22)}</td>
					<td>${li.get(4)+li.get(10)+li.get(16)+li.get(22)}</td>
				</tr>
				<tr class="text-c">
					<td>托管车辆</td>
					<td>${li.get(5)}</td>
					<td>${li.get(11)}</td>
					<td>${li.get(17)}</td>
					<td>${li.get(23)}</td>
					<td>${li.get(5)+li.get(11)+li.get(17)+li.get(23)}</td>
				</tr>
			</tbody>
		</table>
	</div>

	<footer class="footer mt-20">
	<div class="container">
		<p>
			感谢jQuery、layer、laypage、Validform、UEditor、My97DatePicker、iconfont、Datatables、WebUploaded、icheck、highcharts、bootstrap-Switch<br>
			Copyright &copy;2015-2018 H-ui.admin v3.1 All Rights Reserved.<br>
			本后台系统由<a href="http://www.h-ui.net/" target="_blank" title="H-ui前端框架">H-ui前端框架</a>提供前端技术支持
		</p>
	</div>
	</footer>

</body>
</html>